shouldn't require a screen
* gtk/gtkfontsel.c (gtk_font_selection_set_font_name):
Don't warn if there is no screen, just return FALSE
svn path=/trunk/; revision=21621
+2008-10-09 Christian Dywan <christian@imendio.com>
+
+ Bug 555573 – gtk_font_selection_set_font_name
+ shouldn't require a screen
+
+ * gtk/gtkfontsel.c (gtk_font_selection_set_font_name):
+ Don't warn if there is no screen, just return FALSE
+
2008-10-09 Christian Dywan <christian@imendio.com>
Bug 555523 – gtk_scale_button_set_adjustment should accept NULL
const gchar *new_family_name;
g_return_val_if_fail (GTK_IS_FONT_SELECTION (fontsel), FALSE);
- g_return_val_if_fail (gtk_widget_has_screen (GTK_WIDGET (fontsel)), FALSE);
-
+
+ if (!gtk_widget_has_screen (GTK_WIDGET (fontsel)))
+ return FALSE;
+
new_desc = pango_font_description_from_string (fontname);
new_family_name = pango_font_description_get_family (new_desc);